<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
		<script type="text/javascript" src="/3.2.3/ThinkPHP/Application/Admin/View/Public/Js/jquery-1.7.2.min.js"></script>
		<link rel="stylesheet" href="/3.2.3/ThinkPHP/Application/Admin/View/Public/Css/public.css" />
	
	</head>
	<body>
	<form action="<?php echo U('Admin/Rbac/addRoleHandle');?>" method="post">
		 <table class='table' >
		 	<tr >
		 		<th >ID</th> 
		 		<th >角色名称</th> 
		 		<th >角色描述</th> 
		 		<th >开启状态</th> 
		 		<th >操作</th> 
		 	</tr>

		 	<?php if(is_array($role)): foreach($role as $key=>$v): ?><tr align="right">
		 			<td><?php echo ($v["id"]); ?></td>
		 			<td><?php echo ($v["name"]); ?></td>
		 			<td><?php echo ($v["remark"]); ?></td>
		 			<td>
		 				<?php if($v["status"]): ?>开启<?php else: ?>关闭<?php endif; ?>
		 			</td>
		 			<td>
		 				<a href="<?php echo U('Admin/Rbac/access',array('rid'=>$v['id']));?>">配置权限</a>
		 			</td>
		 		</tr><?php endforeach; endif; ?>
			
		 </table>
	</form>
	</body>
</html>